import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty, IsOptional } from "class-validator"

export class LoginUserDto {
  @ApiProperty({ description: '用户名', default: '' })
  @IsNotEmpty({ message: '用户名必填' })
  readonly account: string;

  @ApiProperty({ description: '密码', default: '' })
  @IsNotEmpty({ message: '密码必填' })
  readonly password: string;

  @ApiProperty({ description: '平台', required: false, default: '' })
  @IsOptional()
  readonly pf?: number;

  // @ApiProperty({ description: '验证码凭证', required: false, default: '' })
  // @IsOptional()
  // readonly captchaParam?: string;
}